import request from '@/utils/request'

// 查询商城充值配置列表
export function listShopRecharge(query) {
  return request({
    url: '/business/shopRecharge/list',
    method: 'get',
    params: query
  })
}

// 查询商城充值配置详细
export function getShopRecharge(id) {
  return request({
    url: '/business/shopRecharge/' + id,
    method: 'get'
  })
}

// 新增商城充值配置
export function addShopRecharge(data) {
  return request({
    url: '/business/shopRecharge',
    method: 'post',
    data: data
  })
}

// 修改商城充值配置
export function updateShopRecharge(data) {
  return request({
    url: '/business/shopRecharge',
    method: 'put',
    data: data
  })
}

// 删除商城充值配置
export function delShopRecharge(id) {
  return request({
    url: '/business/shopRecharge/' + id,
    method: 'delete'
  })
}
